---
id: removesubscription
title: "removeSubscription()"
slug: removesubscription
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

Removes an active subscription and returns the number of open connections.

<Tabs
  defaultValue="js"
  groupId="libraries"
  values={[{ label: 'JavaScript', value: 'js' },{ label: 'Python', value: 'py' }]}>

<TabItem value="js">

```js
supabase.removeSubscription(mySubscription)
```


</TabItem>
<TabItem value="py">

```py
# Not yet implemented
```


</TabItem>

</Tabs>

## Parameters


<ul className="method-list-group">
  
<li className="method-list-item">
  <h4 className="method-list-item-label">
    <span className="method-list-item-label-name">
      subscription
    </span>
    <span className="method-list-item-label-badge required">
      required
    </span>
    <span className="method-list-item-validation">
      RealtimeSubscription
    </span>
  </h4>
  <div class="method-list-item-description">

The subscription you want to remove.
  
  </div>
  
</li>

</ul>














## Examples

### Remove a subscription



<Tabs
  defaultValue="js"
  groupId="libraries"
  values={[{ label: 'JavaScript', value: 'js' },{ label: 'Python', value: 'py' }]}>

<TabItem value="js">

```js
supabase.removeSubscription(mySubscription)
```


</TabItem>
<TabItem value="py">

```py
# Not yet implemented
```


</TabItem>

</Tabs>